<div id="trainer-online">
  <h1><?php echo t('Trainers Online') ?></h1>
  <ul>
    <?php foreach($data['online'] as $row) : ?>
    <li>
      <a href="<?php echo base_path() ?>" title="<?php echo $row->surname . ' ' . $row->fcn_name ?>">
        <?php echo $row->surname . ' ' . $row->fcn_name ?>
      </a>
    </li>
    <?php endforeach ?>
  </ul>
</div>